const { loginDB } = require('../db/user');

const login = async (name, password) => {

    try {
        return await loginDB(name, password);
    } catch (err) {
        console.log(err);
        throw err;  //继续抛出
    }

}

exports.login = login;